//
//  Score.m
//  ShoutBoss
//
//  Created by Luck Mstone on 6/16/09.
//  Copyright 2009 MS. All rights reserved.
//

#import "Score.h"
#import "cocos2d.h"

@implementation Score

@synthesize score;

-(id) init
{
	self = [super init];
	if(self != nil){		
		//初始化工作...
		self.score = 100;
		NSString* tempscore = [[NSString alloc] initWithFormat:@"%d", self.score];
		Label* scorelabel = [Label labelWithString:tempscore fontName:@"Marker Felt" fontSize:32];
		
		[scorelabel setPosition: ccp(400,300)];
		[self addChild: scorelabel];
	}
	
	return self;
}

@end
